package com.albbz;

public class Triangle extends Shape {

	public Triangle(int row) {

		super(row);
	}

	@Override

	public void draw() {

		for (int i = 0; i <super.getRow(); i++) {

			for (int j = 0; j <2*i-1; j++) {

				System.out.print("*");

			}

			System.out.println();

		}

	}
}
